package com.qf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.dao.GoodsDao;
import com.qf.entity.Goods;
import com.qf.service.GoodsService;
import org.springframework.stereotype.Service;

/**
 * 商品表(Goods)表服务实现类
 *
 * @author makejava
 * @since 2023-04-07 18:51:48
 */
@Service("goodsService")
public class GoodsServiceImpl extends ServiceImpl<GoodsDao, Goods> implements GoodsService {
    @Override
    public Goods queryPrice(int gid) {
        Goods goods = this.query().eq("id", gid).one();
        return goods;
    }
    /**
     * 根据商品id查询单价
     * @param gid
     * @return
     */

}

